from urllib.parse import urlencode


def jobListUrl(page, city, position):
    baseUrl = 'https://www.zhipin.com/wapi/zpgeek/search/joblist.json'
    searchParams = {
        'scene': '1',
        'query': '',
        'city': city,
        'experience': '',
        'payType': '',
        'partTime': '',
        'degree': '',
        'industry': '',
        'scale': '',
        'stage': '',
        'position': position,
        'jobType': '',
        'salary': '',
        'multiBusinessDistrict': '',
        'multiSubway': '',
        'page': str(page),
        'pageSize': '30'
    }
    encodedParams = urlencode(searchParams)
    return f"{baseUrl}?{encodedParams}"